package com.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.nativex.hint.AotProxyHint;
import org.springframework.nativex.hint.NativeHint;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication()
@ComponentScan({"com.config", "com.admin.controller", "com.admin.service.impl", "com.aliyun", "com.listener", "com.api.service.v1", "com.api.action.v1", "com.api.action.v2", "com.task"})
@MapperScan("com.admin.mapper")
@ImportResource("classpath:spring-transaction.xml")
@ServletComponentScan(basePackages = "com.listener.*")
@EnableScheduling
@EnableRedisHttpSession(redisNamespace = "woss:spring:session")

public class MainBoot{



    public static void main(String[] args) {

        SpringApplication.run(MainBoot.class);

    }
}
